GitHub 您所在的位置:网站首页 zynq 1588 GitHub

GitHub

2023-09-01 15:28| 来源: 网络整理| 查看: 265

HA1588

This layer includes driver(s) for integrating the HA1588 IP core with Linux via OpenEmbedded Yocto. The related project is for enabling hardware-accelerated 1588 support.

Currently the driver(s) include:

RTC - Exposed as both RTC and PTP drivers

NOTE: The kernel config removes the synchronization between the system and RTC (hwclock) and vice versa since ideally you may want to sync system time to the RTC after PTP lock.

This layer has been used successfully with a Xilinx PicoZed and AXI Ethernet Subsystem 1G/2.5G produced by Vivado 2018.3.

Layer Compatibility

This layer requires Yocto core. It has been tested with the Rocko branch, but may be compatible with newer versions.

Requirements

The following section defines the requirements for the core.

Yocto

Append your kernel features with ha1588.scc:

KERNEL_FEATURES_append = " ha1588.scc"

NOTE: If you are using any other kernel than linux-yocto, append your kernel recipe with include recipes-kernel/linux/ha1588.inc.

Device Tree

The following is an example device tree segment generated by Xilinx's device-tree-xlnx and patched with the compatibility string and ha1588,period property:

rtc_0: rtc@43c10000 { clock-names = "S_AXI_ACLK"; clocks = ; compatible = "ha1588,rtc-1.0"; reg = ; ha1588,period = ; };

The important properties are the compatible string name and ha1588,period key-value pair.

The ha1588,period is the the clock period for counting time in the HA1588 IP core. It is 40 bits, nanoseconds, and set in firmware. This property is for that initial value which will be updated by the kernel driver. For example, a 40 MHz (25 ns) clock clock is:

# Python: hex(int(25 * 2**32)) 25.0 ns x 2^32 = 0x1900000000


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有